package com.dc.aimc.common.mybatis.config;

import lombok.Data;

/**
 * 代码自动生成配置
 */
@Data
public class GeneratorConfig {

    /**
     * 生成路径 (到main一级为止，后缀无斜杠"/"  如：/Users/joeysmba/IdeaProjects/aimc-cloud/aimc-user/src/main)
     */
    private String path;

    /**
     * 创建者
     */
    private String author;

    /**
     * 包路径
     */
    private String packagePath;

    /**
     * 要去除的数据库表前缀
     */
    private String tablePrefix;

    /**
     * 数据库表名
     */
    private String[] tables;


    public GeneratorConfig() {
    }

    public GeneratorConfig(String path, String author, String packagePath, String tablePrefix, String... tables) {
        this.path = path;
        this.author = author;
        this.packagePath = packagePath;
        this.tablePrefix = tablePrefix;
        this.tables = tables;
    }

    public void setTables(String... tables) {
        this.tables = tables;
    }
}
